<?php  
session_start();
defined('APPLICATION_URL')||define('APPLICATION_URL', '/ITjap(tung)/ITjap_finalversion');
$userId=$_SESSION['userId'];
if(!isset($userId)) header('Location:'.APPLICATION_URL.'/index.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<!-- head - Finished -->
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<link rel="stylesheet" href="../css/layout.css" type="text/css" media="screen" />
	<link rel="stylesheet" href="../css/home.css" type="text/css" media="screen" />
	<link rel="stylesheet" href="../css/register.css" type="text/css" media="screen" />	
	<link rel="stylesheet" href="../css/room_managerment.css" type="text/css" media="screen" />
	<script src="../../js/jquery-1.7.2.min.js"language="javascript"></script>
	<title>会議室予約システム</title>
</head>
<!-- /head - Finished -->
		<script type="text/javascript">
		$(document).ready(function(){
			$("#add").click(function() {
				  $('#edit_').hide();
				  $('#delete_').hide();		
				  $('#add_').show("fast");
				});
			$("#edit").click(function() {
				  $('#add_').hide();
				  $('#delete_').hide();	
				  $('#edit_').show("fast");
				});
			$("#delete").click(function() {
				  $('#add_').hide();
				  $('#edit_').hide();	
				  $('#delete_').show("fast");
				});
		 });
		</script>
<body>
<!-- header area -->
	<form name="form1" method="post" action="./updateUserController.php" id="form1">
	<div id="header_area">
	  <div id="header">
	    <div id="header_link_area">
	      <a name="pagetop"></a>
	      <div id="header_appeal">会議室予約システム</div>
	      <div id="header_link">
	       <ul>
	          <li class="header_b_1"><a href="admin.php" class="header_b_1"><img src="../images/header/header_b_1.gif" alt="ホーム" width="56" height="21" /></a></li>
	          <li class="logout"><a href="<?php echo APPLICATION_URL?>/controller/logout.php" class="header_b_2"><img src="../images/header/header_b_5.gif" alt="logout" width="71" height="21" /></a></li>
	          <li class="setting"><a href="../../change_pass.php" class="header_b_3"><img src="../images/header/header_b_3.gif" alt="setting"" width="155" height="21" /></a></li>
	          <li class="header_b_4"><a href="../../../index.php" class="header_b_4"><img src="../images/header/header_b_4.gif" alt="お問い合せ" width="82" height="21" /></a></li>
	        </ul>
	      </div>
	    </div>
	    <div id="header_title">
	       <img id="SiteHeader1_imgTitle" src="../images/header/header_title_1.gif" alt="貸会議室予約" style="height:90px;width:960px;border-width:0px;" /> 
	    </div>
	  </div>
	</div>
<!-- header area-->
	
<!-- pan_area -->
	      <div id="pan_area">
	        <div id="pan">
	          <ul>
	            <li>&nbsp;</li>
	          </ul>
	        </div>
	      </div>
<!-- pan_area -->
	  
<!-- /main -->
	<div id="main_top_area">&nbsp;</div>   
	<!-- main_middle_area -->   
	<div id="main_middle_area">
	    <!-- main area-->
		<div id="main_area">		
			<!-- main -->
			<div id="main">
			 <!-- navi -->
				      <div id="navi">
				        <ul>
				          <li class="kanrisha_shitsu"><a href="room_manager.php" class="navi_b_1"><img src="../images/navi/kanrisha_shitsu.gif" alt="kanrisha_shitsu" width="145" height="39" /></a></li>
				          <li class="kanrisha_user"><a href="user_manager.php" class="navi_b_2"><img src="../images/navi/kanrisha_user.gif" alt="kanrisha_user" width="145" height="39" /></a></li>
				          <li class="kanrisha_penalty"><a href="unauthorized_detect.php" class="navi_b_3"><img src="../images/navi/kanrisha_penalty.gif" alt="kanrisha_penalty" width="145" height="39" /></a></li>
				        	<li class="tenanto_setting"><a href="Change_Info.php" class="navi_b_3"><img src="../images/navi/tenanto_setting.gif" alt="個人情報変更" width="145" height="39" /></a></li>
				        </ul>
				      </div>
				   <!-- /navi -->
            <!-- contents -->
            <div id="content">
              <h1><img src="../images/h1_sys_member_entry.gif" alt="新規会員登録" /></h1>              
              <!-- state -->
              <div id="state">
                	<img id="imgState" alt="状態" src="../images/member_enrtry_state_1.gif" style="border-width:0px;" />
              </div>
              <!-- state -->              
              <!-- card -->
              <div class="user_entry">
                <p class="user_entry">必要事項を記入し、［登録内容の確認］ボタンをクリックします。&nbsp;</p>                
                  <img class="user_entry" src="../images/member_entry_title.gif" alt="新規会員登録" />
                <table class="user_entry">
                  
                  <tr>
                  	<!-- User ID -->
                    <th>ユーザID<br /><span> ［必須］</span></th>
				     <td>
                      <input name="userid" <?php echo "value=".$userID; ?> type="text" readonly="readonly" maxlength="50" id="userForm_tbAddress" class="width_50" />                      
                      <span id="userForm_rfvAddress" style="color:Red;display:none;"><br />ログインIDを入力してください。</span>
                    </td>
                  </tr>
                  
                  <tr>
                  	<!-- login -->
                    <th>ログインID<br /><span> ［必須］</span></th>
				     <td>
                      <input name="inputAccName" <?php echo "value=".$user->getUserAccName(); ?> type="text" maxlength="50" id="userForm_tbAddress" class="width_50" />                      
                      <span id="userForm_rfvAddress" style="color:Red;display:none;"><br />ログインIDを入力してください。</span>
                    </td>
                  </tr>
                
                  <tr>
                  	 <!-- password -->
                  	 <th>パスワード<br /><span> ［必須］</span></th>
				     <td>
                      <input name="rpwd" type="text" value=<?php echo $user->getUserPassword(); ?>  maxlength="50" id="userForm_tbMailAddress" class="width_50" />   
                      <span id="userForm_rfvMailAddress" style="color:Red;display:none;"><br />パスワードを入力してください。</span>
                    </td>
                  </tr>
                  
                  <tr>
                    <th>お名前<br /><span> ［必須］</span></th>
                    <td>
                      <label>
                       	 <input name="userForm$tbFamilyName" value=<?php echo $user->getUserName(); ?>  type="text" maxlength="20" id="userForm_tbFamilyName" class="width_20" />&nbsp;&nbsp;                     
                        <span id="userForm_rfvFamilyName" style="color:Red;display:none;"><br />姓を入力してください。</span>
                      </label>
                    </td>
                  </tr>
                  
                  <tr>
                    <th>住所<br /><span> ［必須］</span></th>
                    <td>
                      <input name="userForm$tbAddress" type="text" maxlength="50" id="userForm_tbAddress" class="width_50" />                      
                      <span id="userForm_rfvAddress" style="color:Red;display:none;"><br />住所を入力してください。</span>
                    </td>
                  </tr>
                  <tr>
                    <th>TEL<br /><span> ［必須］</span></th>
                    <td>
                      <input name="userForm$tbTel" type="text"  value=<?php echo $user->getUserTel(); ?> maxlength="15" id="userForm_tbTel" class="width_15" />                      
                      <span id="userForm_rfvTel" style="color:Red;display:none;">電話番号を入力してください。</span>
                    </td>
                  </tr>
                                   
                  <tr>
                    <th>メールアドレス<br /><span> ［必須］</span></th>
                    <td>
                      <input name="userForm$tbMailAddress2" type="text" value=<?php echo $user->getUserEmail(); ?>  maxlength="50" id="userForm_tbMailAddress2" class="width_50" />
                      <span id="userForm_rfvMailAddress" style="color:Red;display:none;"><br />メールアドレスを入力してください。</span>
                    </td>
                  </tr>
                  
                  <tr>
                  	<th>ユーザレベル<br /><span> ［必須］</span></th>
                  	<td>
                  	<input type="radio" name="level" value="2" <?php if ($user->getUserKind()==2) echo "checked='checked'";?>/>　管理者<br />
					<input type="radio" name="level" value="1" <?php if ($user->getUserKind()==1) echo "checked='checked'";?>/> テナントさん
					</td>
                  </tr>
                  
                </table>                  
                <div class="button_area">               
                   <input type="submit" name="btnConfirm" value="登録内容の確認" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;btnConfirm&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="btnConfirm" />         
                </div>
              </div>
              <!-- card -->              
            </div>
            <!-- contents -->	    
			</div>
	  		<!-- /main -->	  	
		</div>
		<!-- /main_area-->
	 </div>
	 <!-- /main_middle_area -->
	<div id="main_bottom_area">&nbsp;</div>
<!-- /main -->
      
<!-- FOOTER -->
	<div id="footer_area">
	  <div id="footer">
	    <ul>
	      <li class="left"><a href="../../../index.php">ホーム</a></li>
	    </ul>
	    <p>Copyright&nbsp;&copy;&nbsp;Team 08</p>
	  </div>
	</div>
<!-- FOOTER -->
</form>
</body>
</html>